package com.car.service.impl;

import com.car.dao.VipMapper;
import com.car.entity.*;
import com.car.service.IVipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("vipService")
public class VipService implements IVipService {

    @Autowired
    @Qualifier("vipMapper")
    public VipMapper vipMapper;

    @Override
    public int addVip(Vip vip) {
        System.out.println("添加会员");
        return vipMapper.addVip(vip);
    }
    @Override
    public int addCar1(Car car) {
        return vipMapper.addCar1(car);
    }

    @Override
    public List<HuiYuan> findAll() {
        System.out.println("查询会员");
        return vipMapper.findAll();
    }

    @Override
    public List<Billing> findID(int vid) {
        return vipMapper.findID(vid);
    }

    @Override
    public List<Billing> findB(int vid) {
        return vipMapper.findB(vid);
    }

    @Override
    public List<Car> findCar(int vid) {
        return vipMapper.findCar(vid);
    }

    @Override
    public List<Pet_card> findPet(int vid) {
        return vipMapper.findPet(vid);
    }

    @Override
    public List<Year_card> findYear(int vid) {
        return vipMapper.findYear(vid);
    }

    @Override
    public List<Gift> findGift(int vid) {
        return vipMapper.findGift(vid);
    }

    @Override
    public List<Details> findDetails(int wid) {
        return vipMapper.findDetails(wid);
    }

    @Override
    public List<Vip> findIDR(String vname) {
        return vipMapper.findIDR(vname);
    }

    @Override
    public Vip findIDR1(String vname) {
        return vipMapper.findIDR1(vname);
    }

    @Override
    public int updateVip(Vip vip) {
        return vipMapper.updateVip(vip);
    }

    @Override
    public List<VipCarYear> findYear1(int vid) {
        return vipMapper.findYear1(vid);
    }


    @Override
    public int addCar(Car car) {
        return vipMapper.addCar(car);
    }

    @Override
    public List<GiftVip> findGift1(int vid) {
        return vipMapper.findGift1(vid);
    }

    @Override
    public List<CalendarVip> findCalendarVip(int vid) {
        return vipMapper.findCalendarVip(vid);
    }

    @Override
    public List<IntegralVip> findIntegralVip(int vid) {
        return vipMapper.findIntegralVip(vid);
    }

    @Override
    public int updateCar(Car car) {
        return vipMapper.updateCar(car);
    }

    @Override
    public Car findIdCar(int cid) {
        return vipMapper.findIdCar(cid);
    }

    @Override
    public Pet_card findIdPet_card(int pid) {
        return vipMapper.findIdPet_card(pid);
    }

    @Override
    public int updatePet_card(Pet_card pet_card) {
        return vipMapper.updatePet_card(pet_card);
    }

    @Override
    public Pet_card findIdSj(int pid) {
        return vipMapper.findIdSj(pid);
    }

    @Override
    public int deleteCar(int cid) {
        return vipMapper.deleteCar(cid);
    }

    @Override
    public int kpdelete(int pid) {
        return vipMapper.kpdelete(pid);
    }

    @Override
    public int addPet_card(Pet_card pet_card) {
        return vipMapper.addPet_card(pet_card);
    }

    @Override
    public List<Emp> findEmp() {
        return vipMapper.findEmp();
    }

    @Override
    public List<Details> findOneSpree(int wid) {
        return vipMapper.findOneSpree(wid);
    }

    @Override
    public int addyear_card(Year_card year_card) {
        return vipMapper.addyear_card(year_card);
    }

    @Override
    public int addGift(Gift gift) {
        return vipMapper.addGift(gift);
    }

    @Override
    public List<Details> findDetails() {
        return vipMapper.findDetails();
    }

    @Override
    public int updateSJPet_card(Pet_card pet_card) {
        return vipMapper.updateSJPet_card(pet_card);
    }

}
